OpenBuildings GenerativeComponents Help

Writing our own functions: local functions

The easiest way to create a function in OpenBuildingsā„¢ GenerativeComponents is by using the statement builder and selecting function. This gives the basic construction.

function (arguments)
{
}

Functions, like variables must be defined above the place where they are called in the code otherwise the compiler will throw an error.